package com.heihx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heihx.dto.DishDTO;
import com.heihx.dto.DishPageQueryDTO;
import com.heihx.entity.Dish;
import com.heihx.result.PageResult;
import com.heihx.vo.DishVO;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDTO dishDTO);

    void deleteByIds(List<Long> ids);

    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    DishVO getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);

    List<DishVO> listWithFlavor(Dish dish);
}
